import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        // write your code here
        Scanner scanner = new Scanner(System.in);
        char character =scanner.next().charAt(0);
        System.out.println((int)character);
    }
}
/**
 *  尝试使用Scanner输入一个字符
 */